import java.math.BigDecimal;

public class Fruit {

    private BigDecimal price;

    private BigDecimal number;

    public Fruit(BigDecimal price, BigDecimal number) {
        this.price = price;
        this.number = number;
    }

    public BigDecimal getTotalPrice() {

        return price.multiply(number);
    }

}
